import request from '/@/utils/request';

const communityApi = {
	// 获取设备list
	getCommunityListByDeptId(data: object) {
		return request({
			url: '/api/v1/smoke/community/listByDeptId',
			method: 'post',
			data,
		});
	},

	// 获取设备list
	getCommunityList(data: object) {
		return request({
			url: '/api/v1/smoke/community/page',
			method: 'post',
			data,
		});
	},

	addCommunity(data: object) {
		return request({
			url: '/api/v1/smoke/community',
			method: 'post',
			data,
		});
	},

	updateCommunity(data: object) {
		return request({
			url: '/api/v1/smoke/community',
			method: 'put',
			data,
		});
	},

	delete(data: object) {
		return request({
			url: '/api/v1/smoke/community',
			method: 'delete',
			data,
		});
	},

	// 获取小区安装文档信息
	getInstallDocInfo(data: object) {
		return request({
			url: '/api/v1/smoke/community/getInstallDocInfo',
			method: 'post',
			data,
		});
	},

};
export default communityApi;
